package cvc.framework.mapper;

import cvc.framework.entity.Camera;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


@Mapper
public interface CameraMapper {
    @Select("SELECT * FROM CAMERACONFIG where cameraId = 1")
    Camera getCamera();

    @Update({ "update CAMERACONFIG set rtmp = #{rtmp},resolution = #{resolution},frameRate = #{frameRate} where cameraId = #{cameraId}" })
    int updateCamera(Camera camera);
}
